package main;

import java.io.FileNotFoundException;
import java.io.IOException;

import javax.xml.parsers.ParserConfigurationException;

import org.xml.sax.SAXException;

import xml.ParseXMLException;
import Controller.Controller;

public class Main {

	/**
	 * @param args
	 * @throws ParserConfigurationException
	 * @throws ParseXMLException
	 * @throws IOException
	 * @throws SAXException
	 * @throws FileNotFoundException
	 */
	public static void main(String[] args) throws FileNotFoundException,
			SAXException, IOException, ParseXMLException,
			ParserConfigurationException {
		// RadioWaves rw = new RadioWaves();
		// Semaphore sem = new Semaphore(1);
		// int maxRBs = 5;
		//
		// ENodeB eNodeB = new ENodeB(sem, maxRBs, 2, 2, 1, rw);
		// Thread eNodeBThread = new Thread(eNodeB);
		//
		// byte[] a = { (byte) 0x12, (byte) 0x5F, (byte) 0xE8, (byte) 0xFF,
		// (byte) 0xFF, (byte) 0xFF };
		// UE ue1 = new UE(1.2, 2, a, eNodeB, rw, maxRBs);
		//
		// ue1.setCQI(new int[] { 5, 8, 3, 7, 11 });
		// ue1.setThroughput(new double[] { 100, 200, 300, 400, 500 });
		// Thread ueThread1 = new Thread(ue1);
		//
		// byte[] b = { (byte) 0xF0, (byte) 0x5F, (byte) 0xE8, (byte) 0xFF,
		// (byte) 0xFF, (byte) 0xFF };
		// UE ue2 = new UE(1, 1.8, b, eNodeB, rw, maxRBs);
		// ue2.setCQI(new int[] { 12, 10, 9, 5, 10 });
		// ue2.setThroughput(new double[] { 500, 400, 350, 200, 100 });
		// Thread ueThread2 = new Thread(ue2);
		// byte[] c = { (byte) 0xF1, (byte) 0x5F, (byte) 0xE8, (byte) 0xFF,
		// (byte) 0xFF, (byte) 0xFF };
		// UE ue3 = new UE(1, 1.9, c, eNodeB, rw, maxRBs);
		// ue3.setCQI(new int[] { 1, 13, 8, 4, 1 });
		// ue3.setThroughput(new double[] { 300, 300, 325, 300, 300 });
		// Thread ueThread3 = new Thread(ue3);
		//
		// eNodeBThread.start();
		// ueThread1.start();
		// ueThread2.start();
		// ueThread3.start();
		// try {
		// try {
		// try {
		// XMLReader.getParseurLecture().parse(
		// "C:\\cours\\utbm\\RE56\\projet\\newXMLDocument.xml", "0");
		// } catch (FileNotFoundException e) {
		// e.printStackTrace();
		// } catch (XMLStreamException e) {
		// e.printStackTrace();
		// } catch (ParseXMLException e) {
		// e.printStackTrace();
		// }
		Controller.getController();
		// XMLDOMPARSER.getXMLDOMPARSER().parse(
		// "C:\\cours\\utbm\\RE56\\projet\\newXMLDocument.xml", "0");

	}
}
